package com.kygeng.springframework.beans.factory;

import com.kygeng.springframework.beans.BeansException;

/**
 * @Title: BeanFactory
 * @Author: kygeng
 * @Package: com.kygeng.springframework.beans.factory
 * @Date: 2024/7/21 11:39
 * @Description: Bean 工厂
 */
public interface BeanFactory {

    Object getBean(String beanName) throws BeansException;

    Object getBean(String beanName, Object... args) throws BeansException;

    <T> T getBean(String beanName, Class<T> requiredType) throws BeansException;

    <T> T getBean(Class<T> requiredType) throws BeansException;
}
